import Layout from '@/layouts/BasicLayout'
import LayoutInset from '@/layouts/LayoutInset'

const technicalEvaluation = {
    path: '/technical-evaluation',
    component: Layout,
    name: 'TechnicalEvaluation',
    meta: {
        title: '路况技术评定',
        code: 'dlyh_r_a8_1'
    },
    redirect: '/technical-evaluation/test-data',
    children: [
        {
            path: 'test-data',
            name: 'TestData',
            component: LayoutInset,
            meta: {
                title: '检测数据管理',
                iconSvg: 'test-data',
                code: 'dlyh_a8_b22_1'
            },
            redirect: '/technical-evaluation/test-data/road-surface/index',
            children: [
                {
                    path: 'road-surface',
                    name: 'RoadSurfaceTest',
                    meta: {
                        title: '路面检测数据',
                        code: 'dlyh_b22_c46_1'
                    },
                    redirect: '/technical-evaluation/test-data/road-surface/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'RoadSurfaceTestList',
                            meta: {
                                title: '列表',
                                componentName: 'RoadSurfaceTestList',
                                details: []
                            },
                            hide: true,
                            component: () => import('@/views/technical-evaluation/test-data/road-surface/index')
                        }
                    ]
                }
            ]
        },
        {
            path: 'evaluation-data',
            name: 'EvaluationData',
            component: LayoutInset,
            meta: {
                title: '评定数据管理',
                iconSvg: 'evaluation-data',
                code: 'dlyh_a8_b23_1'
            },
            redirect: '/technical-evaluation/evaluation-data/road-surface-statistics/index',
            children: [
                {
                    path: 'road-surface-statistics',
                    name: 'RoadSurfaceStatistics',
                    meta: {
                        title: '路面评定明细统计',
                        code: 'dlyh_b23_c47_1'
                    },
                    redirect: '/technical-evaluation/evaluation-data/road-surface-statistics/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'RoadSurfaceStatisticsList',
                            meta: {
                                title: '列表',
                                componentName: 'RoadSurfaceStatisticsList',
                                details: []
                            },
                            hide: true,
                            component: () => import('@/views/technical-evaluation/evaluation-data/road-surface-statistics/index')
                        }
                    ]
                },
                // 这个模块是之前从日常养护移动过来
                {
                    path: 'status-assess',
                    name: 'StatusAssess',
                    meta: {
                        title: '路况评定明细统计',
                        code: 'dlyh_b23_c48_1'
                    },
                    redirect: '/technical-evaluation/evaluation-data/status-assess/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'StatusAssessList',
                            meta: {
                                title: '列表',
                                componentName: 'StatusAssessList',
                                details: ['StatusAssessDetail']
                            },
                            hide: true,
                            component: () => import('@/views/technical-evaluation/evaluation-data/status-assess/index')
                        },
                        {
                            path: 'detail',
                            name: 'StatusAssessDetail',
                            hide: true,
                            meta: {
                                title: '详情',
                                activeMenu: '/technical-evaluation/evaluation-data/status-assess/index'
                            },
                            component: () => import('@/views/technical-evaluation/evaluation-data/status-assess/detail')
                        }
                    ]
                }
            ]
        }
    ]
}
export default technicalEvaluation
